import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';
import 'state.dart';

import 'package:app/core/theme/app_colors.dart';
import 'package:app/global_widgets/welcome_widget.dart';
import 'package:app/routes/my_routes.dart';


class WelcomePage extends StatelessWidget {
  final WelcomeLogic logic = Get.put(WelcomeLogic());
  final WelcomeState state = Get.find<WelcomeLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: kBgColor,
      body: Column(
        children: [
          WelcomeHeaderWidget(),
          GradientBtnWidget(
            width: 208,
            child: BtnTextWhiteWidget(
              text: 'Sign up',
            ),
          ),
          SizedBox(height: 16),
          GestureDetector(
            child: LoginBtnWidget(),
            onTap: () {
              Get.toNamed(RouteConfig.LOGIN);
              // Navigator.push(context, MaterialPageRoute(
              //   builder: (context) {
              //     return LoginPage();
              //   },
              // ));
            },
          ),
          SizedBox(height: 16),
          Text(
            'Forgot password?',
            style: TextStyle(
              fontSize: 18,
              color: kTextColor,
            ),
          ),
          SizedBox(height: 54),
          // Row(
          //   children: [
          //     Spacer(),
          //     LineWidget(),
          //     LoginTypeIconWidget(icon: 'assets/icons/logo_ins.png'),
          //     LoginTypeIconWidget(icon: 'assets/icons/logo_fb.png'),
          //     LoginTypeIconWidget(icon: 'assets/icons/logo_twitter.png'),
          //     LineWidget(),
          //     Spacer(),
          //   ],
          // )
        ],
      ),
    );
  }
}
